package com.njdf;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Test1 {
    public static void main(String[] args) throws SQLException {
        DBUtil db = new DBUtil();
        String sql = "select * from user";
        Object[] obj = {};
        ResultSet select = db.select(sql, obj);
        while (select.next()){
            int id = select.getInt(1);
            System.out.println(id);
        }
    }
}
